//
//  SceneryObject.m
//  Agility
//
//  Created by Dominique d'Argent on 27.04.11.
//  Copyright 2011 Nicky Nubbel. All rights reserved.
//

#import "SceneryObject.h"


@implementation SceneryObject

//
// spawnAtPosition:
//
// Creates a scenery object at a given position and adds it to the game data.
//
+ (void)spawnAtPosition:(CGPoint)newPosition {
    SceneryObject *sceneryObject = [[self alloc] init];
    sceneryObject.position = newPosition;
    
    [[GameData sharedGameData] addSceneryObject:sceneryObject];
    
    [sceneryObject release];
}

@end
